@extends('home.userinfo.user_layout')
@section('title',$title)
@section('content')
	<div id="container">
    <div class="w">
    	<div id="content">
    		<input type="hidden" id="whereFrom" value="">
	        <div id="sub">
	      		<div id="menu">	
	      		<dl class="fore1">		
	      		<dt id="_MYJD_setting">设置</dt>		
	      		<dd class="fore1_1" id="_MYJD_info">			
	      		<a clstag="homepage|keycount|home2013|Homeyser" href="/user" target="_self">个人信息</a>		
	      		</dd>		
	      		<dd class="fore1_2" id="_MYJD_safe">			
	      		<a clstag="homepage|keycount|home2013|Homesafe" href="#" target="_self">账户安全</a>		
	      		</dd>		
	      		<dd class="fore1_3" id="_MYJD_accbinde">			
	      		<a clstag="homepage|keycount|home2013|Homezhbd" href="#" target="_self">账号绑定</a>		
	      		</dd>		
				<dd class="fore1_5 curr" id="_MYJD_comments">	
					<a clstag="homepage|keycount|home2013|Homegrade" href="/dingdan" target="_self">我的订单</a>
				</dd>
	      		<dd>			
	      		<a clstag="homepage|keycount|home2013|homeadd" href="/address" target="_self">收货地址</a>		
	      		</dd>	
	      		</dl>
	      		</div>
	      		<div id="menu-ads">
			
			<!--广告-->
				<div>
			<!-- 	<a href="#" target="_blank"><img width="90" height="70" alt="" app="image:poster" src="{{asset('/public/home/img/gg1.gif')}}">
				</a> -->

				</div>

				<div>
				<!-- <a href="#" target="_blank"><img width="90" height="70" alt="" app="image:poster" src="{{asset('/public/home/img/gg2.jpeg')}}"></a> -->
				</div>

				</div>
	        </div> 

	        <div id="main">
            <!-- <div id="addressList" class="mod-main mod-comm">              -->
				<div class="mt">
					<div class="order_list_top" style="background: #fa8072;
				    width: 850px;
				    height: 40px;
				    border-bottom: 1px solid #ddd;
				    line-height: 40px;
				    font-size: 12px;
				    color: #e4393c;">
						<a class="all_order" href="javascript:" style="background: rgb(228, 57, 60);
					    float: left;
					    width: 80px;
					    height: 40px;
					    color: #fff;
					    text-align: center;">单件商品评价</a>
					    <a class="all_order" href="/dingdan" style="background: rgb(228, 57, 60);
					    float: right;
					    width: 80px;
					    height: 40px;
					    color: #fff;
					    text-align: center;">返回我的订单</a>
					</div>
				</div>
				<br>
				<form action="/comment_up" method="post">
					{{csrf_field()}}
					<input type="hidden" name="uid" value="{{$user -> id}}">
					<input type="hidden" name="uname" value="{{$user -> username}}">
					<input type="hidden" name="atime" value="{{date('Y-m-d H:i:s')}}">
					<input type="hidden" name="goods_id" value="{{$id}}">
					<input type="hidden" name="uip" value="{{$_SERVER['SERVER_ADDR']}}">
					<input type="hidden" name="comment_status" value="{{$comment = 1}}">
					<textarea name="content" id="content" cols="100" rows="10"></textarea>
					<input type="submit" value="保存评价" id="com">
				</form>
		<script>
		// alert($);

			$('#com').on('click',function()
			{
				alert('保存成功');
			});
		</script>

@endsection